package com.panfeng.xcloud.boss.provider.rpc.member;

import com.panfeng.xcloud.boss.provider.dto.request.SendEmailReqDTO;
import com.panfeng.xcloud.boss.provider.rpc.fallback.UserInfoFeignApiFallback;
import com.panfeng.xcloud.common.core.web.vo.ResponseVO;
import com.panfeng.xcloud.common.security.feign.FeignOAuth2AutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "xcloud-boss-provider-member", configuration = FeignOAuth2AutoConfiguration.class, fallback = UserInfoFeignApiFallback.class)
public interface UserInfoFeignApi {

    @PostMapping(value = "/feignApi/member/sendEmail")
    ResponseVO sendEmail(@RequestBody SendEmailReqDTO sendEmailReqDTO);

}
